package cn.changeforyou.base.exception;

/**
 * 异常工厂
 */
public class ExceptionFactory {

    public static RuntimeException jsonException(ErrorInfo info) {
        throw new JsonException(info);
    }

    public static RuntimeException jsonException(int code, String message) {
        throw new JsonException(code, message);
    }
}
